import { Dialog } from '@nutui/nutui-react-taro';
import { Map } from '@tarojs/components';

const MapModal = ({ open, onCancel }) => {
  return (
    <>
      <Dialog
        title="电池定位"
        visible={open}
        onConfirm={() => {
          onCancel?.();
        }}
        onCancel={() => {
          onCancel?.();
        }}
      >
        <Map style={{
          width: 300,
          height: 300
        }} longitude={113.324520} latitude={23.099994}></Map>
      </Dialog>
    </>
  );
};
export default MapModal;
